package student

import "fmt"

type StudentAge struct {
	Age  int
	Name string
}

func (student StudentAge) StudentPrinter() {
	fmt.Println("Name:", student.Name, "Age:", student.Age)
}

func (student StudentAge) IfStudentAge() {
	if student.Age > 18 {
		fmt.Println("This student is adult")
	} else {
		fmt.Println("This student is child")
	}

}
